package com.pt.site.resource;

public abstract class StandardResource implements IResource {

	private final String url;
	private final String thumbnailUrl;
	private final String title;
	private final String description;
	private final int width;
	private final int height;
	private final int border;
	
	public StandardResource(String url, String thumbnailUrl, String title,
			String description) {
		this(url, thumbnailUrl, title, description, -1, -1, -1);
	}
	
	public StandardResource(String url, String thumbnailUrl, String title,
			String description, int width, int height, int border) {
		super();
		this.url = url;
		this.thumbnailUrl = thumbnailUrl;
		this.title = title;
		this.description = description;
		this.width = width;
		this.height = height;
		this.border = border;
	}

	@Override
	public String getThumbnailSrc() {
		return thumbnailUrl;
	}

	@Override
	public String getSrc() {
		return url;
	}

	@Override
	public String getTitle() {
		return title;
	}

	@Override
	public String getDescritption() {
		return description;
	}

	@Override
	public int getWidth() {
		return width;
	}

	@Override
	public int getHeight() {
		return height;
	}

	@Override
	public int getBorder() {
		return border;
	}

}
